package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户培训对象 mine_user_training
 * 
 * @author ruoyi
 * @date 2025-01-15
 */
public class MineUserTraining extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户培训记录ID */
    private Long userTrainingId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 培训ID */
    @Excel(name = "培训ID")
    private Long trainingId;

    /** 培训状态 */
    @Excel(name = "培训状态")
    private String status;

    /** 培训标题 */
    private String title;

    private String description;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startedAt;

    /** 完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date completedAt;

    public void setUserTrainingId(Long userTrainingId)
    {
        this.userTrainingId = userTrainingId;
    }

    public Long getUserTrainingId()
    {
        return userTrainingId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setTrainingId(Long trainingId)
    {
        this.trainingId = trainingId;
    }

    public Long getTrainingId()
    {
        return trainingId;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setStartedAt(Date startedAt)
    {
        this.startedAt = startedAt;
    }

    public Date getStartedAt()
    {
        return startedAt;
    }
    public void setCompletedAt(Date completedAt)
    {
        this.completedAt = completedAt;
    }

    public Date getCompletedAt()
    {
        return completedAt;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userTrainingId", getUserTrainingId())
            .append("userId", getUserId())
            .append("trainingId", getTrainingId())
            .append("status", getStatus())
            .append("startedAt", getStartedAt())
            .append("completedAt", getCompletedAt())
            .append("title", getTitle())
            .append("description", getDescription())
            .toString();
    }
}
